package com.kun.rental.mapper;

import com.kun.rental.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ikun
 * @since 2024-07-04
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    // 根据用户id查询权限列表
    List<Permission> selectPermissionListByUserId(Integer userId);


    // 根据角色id查询权限列表
    List<Permission> selectPermissionListByRoleId(Integer roleId);
}
